Meaning of the word "constant occupation prevents temptation" in English

What does "constant occupation prevents temptation" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

constant occupation prevents temptation

US /ˈkɑːn.stənt ˌɑː.kjəˈpeɪ.ʃən prɪˈvents tempˈteɪ.ʃən/
UK /ˈkɒn.stənt ˌɒk.juˈpeɪ.ʃən prɪˈvents tempˈteɪ.ʃən/
"constant occupation prevents temptation" picture

Idiom

the idea that staying busy with work or activities keeps a person from being tempted to do something wrong or harmful

Example:
He started gardening every day because he believed that constant occupation prevents temptation.
Keep the children busy with sports; after all, constant occupation prevents temptation.